import { createRouter, createWebHistory } from 'vue-router';
import { index } from './modul/index';
import { users } from './modul/users';
import { message } from './modul/message';
import { setting } from './modul/setting';
const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [
		{
			path: '/login',
			name: 'login',
			component: () => import('@/views/login/login.vue'),
		},
		{
			path: '/',
			name: 'home',
			component: () => import('@/layout/index.vue'),
			redirect: '/index',
			children: [index, users, message, setting],
		},
	],
});

export default router;
